<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div class="box" th:fragment="help">
    <marquee behavior="alternate" style="color:blue;font-size:16px;" th:if="${session.lgnUserName !=null}" th:text="${session.lgnUserName}+'&nbsp;&nbsp;亲，欢迎你'"></marquee>
    <a th:href="@{/product/show_car}" class="shopping">购物车</a>
    <span style="color: #f00;" th:if="${session.car !=null}"
          th:text="${'('+session.car.size()+')'}"></span>
    <a  th:href="@{/login/to_login}" href="login.html">登录</a>
    <a  th:href="@{/login/to_register}">注册</a>
    <a th:if="${session.lgnUserName !=null}" th:text="退出" th:href="@{/login/logout}">退出</a>
</div>

</body>
</html>